#include <fstream>
#include <iostream>

using namespace std;

const int IMAGE_THEME_COUNT = 139;
const int MUSIC_THEME_COUNT = 77;

int main(int argc, const char *argv[])
{
    ifstream fin("vector_distance");
    ofstream fout("music_theme_choice");
    double val;
    
    for (int i = 0; i < IMAGE_THEME_COUNT; ++i) {
        double best = 0;
        int choice;
        for (int j = 0; j < MUSIC_THEME_COUNT; ++j) {
            fin >> val;           
            if (val > best) {
                best = val;
                choice = j + 1;
            }
        }
        fout << choice << endl;
    }

    return 0;
}
